home *** CD-ROM | disk | FTP | other *** search
- /* SourceServer.h: How to create and send an AppleEvent to SourceServer for ProjectDrag.
- *
- * A set of applets for drag and drop source control by Tim Maroney.
- * See develop, issue 23 for details.
- *
- * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
- * and using the MoreFiles utilities by Jim Luther.
- *
- * This software is free, but don't modify and redistribute it without
- * changing the status window to indicate your name and your changes!
- */
-
- #ifndef __PROJECTDRAG__
- #define __PROJECTDRAG__
-
- #include <Types.h>
- #include <Aliases.h>
- #include <AppleEvents.h>
- #include <Files.h>
-
- #include "PDUtilities.h"
-
- #define kSourceServerCreator 'MPSP'
- #define kSourceServerType 'MPSP'
- #define kProjectorPathSeparator 0xBA
-
- OSErr SourceServerCommand(AEDesc *command, CStringHandle *output, CStringHandle *diagnostic,
- AEIdleUPP idleProc, AEFilterUPP filterProc);
-
- OSErr CreateCommand(AEDesc *command, CString commandText);
-
- OSErr AddCommentArg(AEDesc *command, StringPtr comment);
- OSErr AddDirArg(AEDesc *command, short vRefNum, long folderID);
- OSErr AddProjectArg(AEDesc *command, StringPtr projectName);
- OSErr AddUserArg(AEDesc *command, StringPtr userName);
- OSErr AddFileNameArg(AEDesc *command, FSSpec *file);
- OSErr AddPStringArg(AEDesc *command, StringPtr string);
- OSErr AddCStringArg(AEDesc *command, CString string);
-
- OSErr MountProject(AliasHandle projectAlias);
- OSErr SendCommand(AEDesc *command);
- OSErr MountProjectFromCKID(CKIDHandle theCKID, StringPtr projectName);
- OSErr MountProjectFromFolder(short vRefNum, long folderID, StringPtr projectName);
-
- #endif
-